package com.compass.service;

import com.compass.service.CallService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component("hystrix")
public class CallServiceHystric implements CallService{
    @Override
    public String sayHi(String name) {
        return "not reachable";
    }

    @Override
    public String sell(String itemName, int num) {
        return "can not sell";
    }

    @Override
    public String buy(String itemName, int num) {
        return "can not buy";
    }


}
